<h1>Lista wiadomości</h1>

<table>
  <thead>
    <tr>
      <th>Id</th>
      <th>Author</th>
      <th>Created at</th>
      <th>Updated at</th>
      <th>Category</th>
      <th>Title</th>
      <th>Virtual</th>
      <th>Content</th>
      <th>Is public</th>
      <th>Is activated</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($eti_newss as $eti_news): ?>
    <tr>
      <td><a href="<?php echo url_for('news/show?id='.$eti_news->getId()) ?>"><?php echo $eti_news->getId() ?></a></td>
      <td><?php echo $eti_news->getAuthor() ?></td>
      <td><?php echo $eti_news->getCreatedAt() ?></td>
      <td><?php echo $eti_news->getUpdatedAt() ?></td>
      <td><?php echo $eti_news->getCategoryId() ?></td>
      <td><?php echo $eti_news->getTitle() ?></td>
      <td><?php echo $eti_news->getVirtual() ?></td>
      <td><?php echo $eti_news->getContent() ?></td>
      <td><?php echo $eti_news->getIsPublic() ?></td>
      <td><?php echo $eti_news->getIsActivated() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('news/new') ?>">New</a>
